package com.wilcom.system.controller;

import cn.hutool.json.JSON;
import cn.hutool.json.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@Slf4j
public class TestController {

    @GetMapping("/hello")
    public Object hello() {
        log.info("hello");
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("name", "wilcom");
        log.info(jsonObject.toString());
        return jsonObject;
    }
}
